package com.taotao.springboot2.controller;

import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.LoggerContext;
import com.taotao.springboot2.common.RespData;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * </p>
 *
 * @author fanbeibei
 * @version V1.0
 * @since 2019/7/3 10:50
 */
@RestController
@Slf4j
@RequestMapping("/")
public class DemoController {


    @GetMapping("/hello")
    public RespData<String> hello(@RequestParam("name") String name) {

        return RespData.successResp("hello:"+name);
    }


}
